package com.wl.jetpackdemo.base

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 *
 * Created by wangliang on 2021/1/28.
 */
open class BaseViewModel: ViewModel() {
    private var toastMessageObserver = MutableLiveData<String>()
    fun setToastValue(value: String) {
        toastMessageObserver.value = value
    }

    fun getToastValue() : MutableLiveData<String> {
        return toastMessageObserver
    }

}